package com.ygqh.baby.mapper;
import com.ygqh.baby.model.PreSaleRemind;
import com.ygqh.baby.po.AdminContractDetail;
import com.ygqh.baby.po.AdminContractDetailExample;
import com.ygqh.baby.ao.QueryInfo;

import java.util.List;

import org.apache.ibatis.annotations.Param;
public interface AdminContractDetailMapper {
    int countByExample(AdminContractDetailExample example);

    int deleteByExample(AdminContractDetailExample example);

    int deleteByPrimaryKey(Long id);

    int insert(AdminContractDetail record);

    int insertSelective(AdminContractDetail record);

    List<AdminContractDetail> selectByExample(AdminContractDetailExample example);

    AdminContractDetail selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") AdminContractDetail record, @Param("example") AdminContractDetailExample example);

    int updateByExample(@Param("record") AdminContractDetail record, @Param("example") AdminContractDetailExample example);

    int updateByPrimaryKeySelective(AdminContractDetail record);

    int updateByPrimaryKey(AdminContractDetail record);
    
    int countSuper(@Param ("q") String q);
    
    List<AdminContractDetail> selectSuper(@Param("queryInfo") QueryInfo queryInfo, @Param ("q") String q);

    int saveBatch(@Param("details") List<AdminContractDetail> details);

	List<AdminContractDetail> selectSkuListByContractId(@Param("contractId")Long contractId);

	List<PreSaleRemind> selectPreSaleForRemind();
}



